﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace GraphViewer.Entity
{
    public class ProcessEntity
    {
        public ProcessEntity()
        {
            this.Predecessors = new List<string>();
            this.Successors = new List<string>();
        }

        public string GroupId { get; set; }
        public string GroupName { get; set; }
        public string ProcessId { get; set; }
        public string ProcessName { get; set; }
        public string JobName { get; set; }
        public string TaskType { get; set; }
        public bool IsExternalJob { get; set; }
        public List<string> Predecessors { get; set; }
        public List<string> Successors { get; set; }

        public override string ToString()
        {
            return ProcessId + " - " + ProcessName;
        }
    }
}
